#ifndef _THREADPOOL_H_
#define _THREADPOOL_H_

#include "vector"
#include "threadTask.h"
#include "tsList.h"
#include "memory"

using namespace std;

namespace easyWebServer
{

class ThreadPool
{

public:
    ThreadPool();
    ~ThreadPool();

    void setThreadNum(int threadNum);
    void start();
    void stop();

private:
    vector<unique_ptr<TDTask>> m_threadTasks;
    int m_threadNum = 8;

};


}



#endif